<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <button>点击</button>
    <script>
        var that;
        class Father {
            constructor(uname, age) {
                this.uname = uname;
                this.age = age;
                that = this
                var btn = document.querySelector('button')
                btn.onclick = thisl.super;
            }
            super() {
                console.log(this);
                console.log(that.uname);
            }
        }
        var ldh = new Father("刘德华", 18)

    </script>
</body>

</html>